<template>
  <div>
    <div>这是一个子组件{{ value }}</div>

    <button @click="hClick">电价甲乙</button>

  </div>
</template>

<script>
export default {
  props: {
    value: {
      type: Number,
      required: true
    }
  },
  methods: {
    hClick() {
      this.$emit('input', this.value + 1)
    }
  }
}
</script>

<style>

</style>
